package main
import "fmt"

func printValue(v interface{}){
	switch v_type := v.(type){
	case int:
		fmt.Println("integer: ",v)
	case float64:
		fmt.Println("float64: ",v)
	case string:
		fmt.Println("string: ",v)
	default:
		fmt.Println("unknown type: ", v_type)
	}
}

func main(){
	printValue(123)
	printValue(3.14)
	printValue("hello world")
}

// -->
// a=hello world, b=123, c=3.140000

